package errmsg

const (
	/**
	 * 成功（默认返回状态码）
	 */
	SuccessCode = 200
	SuccessMsg  = "success"

	/**
	 * 全局未知异常
	 */
	SeverError    = 500
	SeverErrorMsg = "服务器异常,请重试"

	/**
	 * 请求资源不存在（静态资源不存在，不常用）
	 */
	DataNotFoundCode = 404
	DataNotFoundMsg  = "没有数据了"

	/*
	 * 登录、权限认证异常
	 */
	LoginExpireCode = 401
	LoginExpireMsg  = "未登录"

	IdentityNotPowCode = 403
	IdentityNotPowMsg  = "您的用户权限不足"

	/*
	   ====通用异常====
	*/

	/*
	   1001-1010 通用操作相关
	*/
	OperationFailCode = 1001
	OperationFailMsg  = "操作失败！"

	SelectOperationFailCode = 1002
	SelectOperationFailMsg  = "查询操作失败！"

	UpdateOperationFailCode = 1003
	UpdateOperationFailMsg  = "更新操作失败！"

	DeleteOperationFailCode = 1004
	DeleteOperationFailMsg  = "删除操作失败！"

	InsertOperationFailCode = 1005
	InsertOperationFailMsg  = "新增操作失败！"

	/*
	   1011-1050 登录注册相关
	*/
	PassWordIsErrorCode = 1010
	PassWordIsErrorMeg  = "密码不正确"

	LoginFailCode = 1011
	LoginFailMsg  = "登录失败，账号或者密码错误"

	LoginFailReLoginCode = 1012
	LoginFailReLoginMsg  = "登录失败，请重试"

	LoginFailCodeCode = 1013
	LoginFailCodeMsg  = "验证码错误"

	NoUserCode = 1014
	NoUserMsg  = "用户不存在"

	RegisterFailCode = 1015
	RegisterFailMsg  = "注册失败，手机号已经存在"

	NoUserPhoneMsg  = 1016
	NoUserPhoneCode = "认证失败，手机号不存在"

	ParamsNotNullCode = 1017
	ParamsNotNullMsg  = "请求参数不能为空"

	TokenIsNullCode = 1018
	TokenIsNullMsg  = "请求头中Authorization为空"

	TokenTypeErrorCode = 1019
	TokenTypeErrorMsg  = "请求头中Authorization格式有误"

	TokenErrorCode = 1020
	TokenErrorMsg  = "无效的Token"

	TokenOverdueCode = 1021
	TokenOverdueMsg = "Token已过期"

	NewPassSimpleOldCode = 1022
	NewPassSimpleOldMsg     = "新密码与旧密码相同"

	/*
	   1051-1070 短信业务相关
	*/
	SmsNotSendCode = 1051
	SmsNotSendMsg  = "短信发送失败"

	SmsCodeExpireCode = 1052
	SmsCodeExpireMsg  = "短信验证码失效"

	SmsCodeVerityFailCode = 1053
	SmsCodeVerityFailMsg  = "短信验证码验证失败"

	/*
	   1071-1100 文件、资源相关
	*/
	FileOverstepSizeCode = 1071
	FileOverstepSizeMsg  = "文件超出规定大小"

	FileUploadFailCode = 1072
	FileUploadFailMsg  = "文件上传失败"

	FileLoadingFailCode = 1073
	FileLoadingFailMsg  = "文件不存在，加载失败"

	FileRequestFailCode = 1074
	FileRequestFailMsg  = "文件类型不支持查看"

	FileTypeImageFailCode = 1075
	FileTypeImageFailMsg  = "请上传图片类型的文件"

	/*
	   1101-1199 请求参数相关
	*/
	ParamIsInvalidCode = 1101
	ParamIsInvalidMsg  = "参数无效"

	ParamIsBlankCode = 1102
	ParamIsBlankMsg  = "参数为空"

	ParamTypeBindErrorCode = 1103
	ParamTypeBindErrorMsg  = "参数类型错误"

	ParamNotCompleteCode = 1104
	ParamNotCompleteMsg  = "参数缺失"

	/*
	   -----------小组管理 业务相关（2xxx）------------
	*/
	RoleIdErrorCode = 2001
	RoleIdErrorMsg  = "身份信息缺失"

	GroupNameIsHaveCode = 2002
	GroupNameIsHaveMsg = "小组名称已存在,请修改后尝试!"

	UserNameIsHaveCode = 2003
	UserNameIsHaveMsg = "用户名已存在,请修改后尝试!"

	UserGroupIsExistCode = 2004
	UserGroupIsExistMsg = "请先退出之前的小组"

	UserGroupIsNotExistCode = 2005
	UserGroupIsNotExistMsg = "请先加入小组"

	UserNotRepeatApplyCode = 2006
	UserNotRepeatApplyMsg = "请勿重复申请"

	UserIsForbidCode = 2007
	UserIsForbidMsg = "当前用户已被禁止申请"

	PassWordLimitCode = 2008
	PassWordLimitMsg = "密码长度为6-16位"
)